<extend name="./Application/Common/View/block/base.php" />
<block name="header">
    <include file="./Application/Admin/View/block/easyui_header.php" />
    <link rel="stylesheet" type="text/css" href="/Public/uploadfy/uploadify.css" />
    <script type="text/javascript" src="/Public/uploadfy/jquery.uploadify.min.js"></script>
    <style>
        #dg{
            height: 100%;;
        }
    </style>
</block>
<block name="bdoy">
    <body>
    <table id="grid_waterele_log"></table>
    <div id="grid_waterele_log_ToolBar" style="padding:5px;height:auto">
        <div id="queryParamZone_waterele_log">
            <form id="queryForm_Waterelelog" method="post" action="">
                <div>
                    <table>
                        <tr>
                            <td>从：</td>
                            <td><input class="easyui-datebox" name="start" style="width: 100px;"></td>
                            <td>到：</td>
                            <td><input class="easyui-datebox" name="end" style="width: 100px;"></td>
                            <td><span><a id="btnQueryWaterelelog" href="#" class="easyui-linkbutton" iconCls="icon-search">查询</a></span></td>
                            <td><a href="#" class="easyui-linkbutton" iconCls="icon-undo" onclick="javascript:$('#queryForm_Waterelelog').form('clear');">重置</a></td>
                        </tr>
                    </table>

                </div>
            </form>
        </div>
    </div>

    </body>
</block>
<block name="footExtendJs">
    <script type="text/javascript">
        //$.noConflict();

        $(window).resize(function() {
            $('#grid_waterele_log').datagrid('resize');
        });

        function clearwaterelelogForm(){
            $('#waterelelogForm').form('clear');
        }

        function clearQueryParamZone(){
            $('#queryForm_Waterelelog').form('clear');
        }

        $(function(){
            $('#grid_waterele_log').datagrid({
                //title:'水电表',
                width: '100%',
                //height: 400,
                fit: true,
                nowrap: false,
                striped: true,
                collapsible:false,
                url:'/Manage/AdminCsdtWaterele/log_get_all',
                queryParams:{eleid:{:I('get.fy_id')},page:1,rows:20},
                method:'get',
                pageNumber:1,
                pageSize:20,
                idField:'id',
                sortName: 'id',
                sortOrder: 'desc',
                remoteSort: false,
                columns:[[
                    {field:'id',title:'序号',width:60,checkbox:true},
                    {field:'sta_name',title:'调蓄池名称',width:180,align:'center'},
                    {field:'we_number',title:'电表编号',width:100,align:'center'},
                    {field:'we_name',title:'电表名称',width:100,align:'center'},
                    {field:'date',title:'填报日期',width:140,align:'center'},
                    {field:'csdt_pfa',title:'锋正向有功',width:140,align:'center'},
                    {field:'csdt_rta',title:'平正向有功',width:140,align:'center'},
                    {field:'csdt_lta',title:'谷正向有功',width:120,align:'center'},
                    {field:'csdt_fa',title:'正向有功',width:120,align:'center'},
                    {field:'csdt_nfa',title:'正向无功',width:120,align:'center'},
                    {field:'csdt_ra',title:'反向无功',width:120,align:'center'},

                ]],
                pagination:true,
                rownumbers:true,
                singleSelect:true,
                toolbar: '#grid_waterele_log_ToolBar',

                onLoadSuccess: function(data) {
                    $(this).datagrid('resize');

                }
            });

            $('#btnQueryWaterelelog').click(function() {
                var obj = $('#queryForm_Waterelelog').serializeJson();
                obj['eleid'] = {:I('get.fy_id')};
                $('#grid_waterele_log').datagrid('load',obj);
            });


        });

    </script>
</block>